﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SearchControl.ascx.cs" Inherits="MangCuaHang.UserControls.SearchControl" %>
<link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
<table class="tblTopPanel" width="100%" cellpadding="0" cellspacing="0">
    <tr valign="middle">
        <td style="width:20%" align="center">
            <asp:ImageButton ID="ImageButton2" ImageUrl="~/Images/logo.jpg" Height="50px" runat="server" />
         </td>
        <td align="center">
            <asp:TextBox ID="textboxSearch" runat="server" Width="218px"></asp:TextBox>
            &nbsp;
            <asp:Button ID="buttonSearch" runat="server" onclick="buttonSearch_Click" Text="Search" /></td>
        <td style="width:40%;">           
            <table width="100%" cellpadding="0" cellspacing="0">
                <tr>
                     <td>
                        <asp:TextBox ID="textboxEmail" runat="server" CssClass="textbox" Text="Email"></asp:TextBox>
                         <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                             ErrorMessage="*" ForeColor="#CC0000" 
                             Display="Dynamic"
                             ControlToValidate="textboxEmail"
                             ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        <asp:TextBox ID="textboxPassword" TextMode="Password" CssClass="textbox" runat="server"></asp:TextBox>                                   
                    </td>
                    <td>
                        <asp:ImageButton ID="btLogin" ImageUrl="~/Images/login.png" runat="server" onclick="btLogin_Click" />&nbsp;  
                    </td>
                    <td>
                        <asp:ImageButton ID="btLoginFb" ImageUrl="~/Images/fblogin.png" runat="server" onclick="btLogin_Click" />&nbsp;  
                    </td>
                </tr>
                <tr>
                    <td colspan="5">
                        <asp:HyperLink ID="hlDangKy" NavigateUrl="../Register.aspx?action=user" runat="server">Đăng Ký</asp:HyperLink>
                        &nbsp;
                        <asp:HyperLink ID="hlTaoCuaHang" NavigateUrl="../Register.aspx?action=store" runat="server">Tạo Cửa Hàng</asp:HyperLink>
                    </td>
                </tr>
            </table>
        </td>       
    </tr>
</table>



